package com.sky.his.api.front.controller.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UpdateCustomerForm {

    @NotBlank(message = "姓名不能为空")
    @Pattern(regexp = "^.{2,10}$", message = "姓名格式不正确")
    private String name;

    @Pattern(regexp = "^(男|女)$", message = "性别格式不正确")
    private String sex;

    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String tel;

}
